package com.douguo.recipe.sina;


public class Cache {
	public static Object getCache(String key) {
		Object obj = MemoryCache.getCache(key);
		return obj;
	}

	public static void put(String key, Object value) {
		put(key, value, CACHE_LEVEL_MEMORY);
	}

	public static void put(String key, Object value, int level) {
		MemoryCache.addCache(key, value);
	}
  
	public static Object remove(String key) {
		Object obj = MemoryCache.remove(key);
		return obj; 
	} 
 
	public static final int CACHE_LEVEL_MEMORY = 0;
	public static final int CACHE_LEVEL_PERSISTENT = 1;
}
